<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
        <title><?php echo $title_for_layout; ?></title>
        <meta name="tags" content="<?php  if(isset($tags)) echo ($tags); ?>"></meta>
        <meta name="description" content="<?php if(isset($metadesc)) __($metadesc); ?>"></meta>
        <meta name="keywords" content="<?php if(isset($keywords)) __($keywords); ?>"></meta>
        <meta name="robots" content="index,follow"></meta>
        <!--FB Open Graph variables -->
        <meta property="og:title" content="<?php echo $title_for_layout; ?>" />
        <meta property="og:type" content="website"/>
        <meta property="og:url" content="<?php echo $url; ?>"/>
        <meta property="og:image" content="http://www.primeag.org/dev/ratetheu/img/front/logo.png"/>
        <meta property="og:site_name" content="Rate The Universe"/>
        <meta property="fb:admins" content="digvijaysingh.chauhan"/>
        <meta property="fb:app_id" content="127586310661062"/>
       <!--FB Open Graph variables Ends-->
        
        <?php
        echo $this->Html->meta('icon');
        echo $this->Html->css(array('front/autocomplete','front/style', 'front/jquery-ui-1.8.16.custom', 'front/slide', 'front/jquery.fancybox-1.3.4'));
        echo $this->Javascript->link(array('front/jsapi','front/script','front/jquery-1.6.2.min','front/jquery-ui-1.8.16.custom.min','front/jquery.bxSlider.min' ,'front/slide',  'clickmenu/jquerycssmenu', 'front/jquery.fancybox-1.3.4.pack'));
        ///echo $this->Javascript->link(array('jquery-1', 'jquery-ui-1', 'hoverIntent', 'superfish', 'excanvas', 'jquery', 'jquery_002', 'set', 'custom'));


        echo $scripts_for_layout;
       
        ?>
        
    </head>
    <body style=" background-color: #041222;" >
        <!--[page html]-->
        <div id="login_element"><?php echo $this->element('login'); ?></div>
        <div id="wrapper" style="margin-top:8px;">
  <div class="container">
                <!--[header]-->

                <div id="header">
                    <div class="container">
                        <!--[logo]-->
                        <div id="logo">
                            <h1><?php echo $this->Html->link('',array('controller'=>'Homes','action'=>'index')); ?></h1>
                        </div>
                        <!--[/logo]-->
<?php if ($this->Session->check('Message.flash')) {
                        echo"<div class='warning_box'>" . $this->Session->flash() . "</div>";
                    } ?>
                        
<?php if ($access->isLoggedIn()) { 
    echo"<div class='profile_box'><span style='font-size:14px;color:#15ADFF;'>" ;
  echo  $this->Html->link('My profile',array('controller'=>'Profiles','action'=>'profile'),array('style'=>'font-size:14px;color:#15ADFF;'));
    echo " </span><br>
You have ";
    if (!isset($_SESSION['points']))
        $_SESSION['points']='0';
        echo $_SESSION['points']; ?>points 
 <?php echo "<br>";
 $planet_level=1000-$_SESSION['points'];
 $star_level=3000-$_SESSION['points'];
echo $planet_level." points until free Planet level<br>
$star_level points until free Star level  " . "</div>";
                    } ?>
</div>
                </div>

                <!--[/header]-->
                <!--[body]-->
                <div id="body">
                   
                    
                    <div style="color:#fff;"><?php echo $content_for_layout; ?></div>
               
                </div>
                <!--[/body]-->
            </div>
            <!--[footer]-->
            <div id="footer">
                <div  class="container">
                    <ul class="footer-listing">
                        <li><?php echo $this->Html->link('About',array('controller'=>'Staticpages','action'=>'about_us')); ?></li>
                        <li><?php echo $this->Html->link('Privacy Policy',array('controller'=>'Staticpages','action'=>'privacy_policy')); ?></li>
                        <li><?php echo $this->Html->link('Terms',array('controller'=>'Staticpages','action'=>'terms')); ?></li>
                        <li><?php echo $this->Html->link('FAQ',array('controller'=>'Staticpages','action'=>'faq')); ?></li>
                        <li class="nobackground"><a href="#">Contact Us</a></li>
                    </ul>
                    <p>Copyright &copy; 2011 Rate The UniverseSM, LLC | Use of this website constitutes acceptence of the RateTheU.com Terms of Use and Privacy Policy.</p>
                </div>
            </div><?php //echo $this->element('sql_dump'); ?>
            <!--[/footer]-->
        </div>
        
        <!--[/page html]-->
        <div id="base-url" style="display:none;"><?php echo $this->base; ?></div>
    </body>
</html>